800
|
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a snapshot
axGantt1.BeginUpdate();
axGantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axGantt1.set_HTMLPicture("p1","c:\\exontrol\\images\\card.png");
axGantt1.set_HTMLPicture("p2","c:\\exontrol\\images\\sun.png");
axGantt1.AutoDrag = EXGANTTLib.AutoDragEnum.exAutoDragCopySnapShot;
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exNoLinesAtRoot;
axGantt1.HasLines = EXGANTTLib.HierarchyLineEnum.exThinLine;
axGantt1.ShowFocusRect = false;
axGantt1.DefaultItemHeight = 26;
axGantt1.Columns.Add("Task");
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.ShowNonworkingDates = false;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,96);
var_Chart.LevelCount = 2;
EXGANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.Color = 0x1000000;
var_Bar.Height = 18;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("<img>p1:32</img>Group 1");
var_Items.set_CellCaptionFormat(h,0,EXGANTTLib.CaptionFormatEnum.exHTML);
var_Items.set_ItemDivider(h,0);
var_Items.set_ItemBold(h,true);
int h1 = var_Items.InsertItem(h,null,"Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
int h2 = var_Items.InsertItem(h,null,"Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.AddLink("L1",h1,"K1",h2,"K2");
var_Items.set_Link("L1",EXGANTTLib.LinkPropertyEnum.exLinkText,"L1");
int h3 = var_Items.InsertItem(h,null,"Task 3");
var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddLink("L2",h2,"K2",h3,"K3");
var_Items.set_Link("L2",EXGANTTLib.LinkPropertyEnum.exLinkText,"L2");
h = var_Items.AddItem("<img>p2:32</img>Group 2");
var_Items.set_CellCaptionFormat(h,0,EXGANTTLib.CaptionFormatEnum.exHTML);
var_Items.set_ItemBold(h,true);
var_Items.set_ItemDivider(h,0);
h1 = var_Items.InsertItem(h,null,"Task");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.set_ExpandItem(0,true);
axGantt1.EndUpdate();
|
799
|
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a image

axGantt1.BeginUpdate();
axGantt1.set_HTMLPicture("p1","c:\\exontrol\\images\\card.png");
axGantt1.set_HTMLPicture("p2","c:\\exontrol\\images\\sun.png");
axGantt1.Chart.set_PaneWidth(true,0);
object var_HTMLPicture = axGantt1.get_HTMLPicture("aka1");
axGantt1.HeaderHeight = 24;
axGantt1.DefaultItemHeight = 48;
axGantt1.DrawGridLines = EXGANTTLib.GridLinesEnum.exRowLines;
axGantt1.GridLineColor = Color.FromArgb(240,240,240);
axGantt1.SelBackMode = EXGANTTLib.BackModeEnum.exTransparent;
axGantt1.ColumnAutoResize = false;
axGantt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\SAMPLE.MDB",ADODB.CursorTypeEnum.adOpenStatic,ADODB.LockTypeEnum.adLockOptimistic,0);
axGantt1.DataSource = (rs as ADODB.Recordset);
axGantt1.Columns[0].set_Def(EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1);
axGantt1.Columns[0].FormatColumn = "value + ` <img>p` + (1 + (value mod 3 ) ) + `</img>`";
axGantt1.Columns[0].Width = 112;
axGantt1.Columns[1].set_Def(EXGANTTLib.DefColumnEnum.exCellHasCheckBox,1);
axGantt1.Columns[2].LevelKey = "1";
axGantt1.Columns[3].LevelKey = "1";
axGantt1.Columns[4].LevelKey = "1";
axGantt1.AutoDrag = EXGANTTLib.AutoDragEnum.exAutoDragCopyImage;
axGantt1.SingleSel = false;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items[1];
var_Items.set_SelectItem(h,true);
h = var_Items[2];
var_Items.set_SelectItem(h,true);
h = var_Items[3];
var_Items.set_SelectItem(h,true);
var_Items.set_LockedItemCount(EXGANTTLib.VAlignmentEnum.BottomAlignment,1);
h = var_Items.get_LockedItem(EXGANTTLib.VAlignmentEnum.BottomAlignment,0);
var_Items.set_CellCaption(h,1,"<font ;16>Click the selection and <b>wait to start dragging</b>, and then drop to Microsoft Word, ...");
var_Items.set_CellSingleLine(h,1,EXGANTTLib.CellSingleLineEnum.exCaptionWordWrap);
var_Items.set_CellCaptionFormat(h,1,EXGANTTLib.CaptionFormatEnum.exHTML);
var_Items.set_CellHAlignment(h,1,EXGANTTLib.AlignmentEnum.CenterAlignment);
var_Items.set_ItemDivider(h,1);
var_Items.set_ItemDividerLineAlignment(h,EXGANTTLib.DividerAlignmentEnum.DividerTop);
axGantt1.EndUpdate();
|
798
|
How can copy and paste the selection to Microsoft Word, Excel or any OLE compliant application, as a text

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.ColumnAutoResize = false;
axGantt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\SAMPLE.MDB",ADODB.CursorTypeEnum.adOpenStatic,ADODB.LockTypeEnum.adLockOptimistic,0);
axGantt1.DataSource = (rs as ADODB.Recordset);
axGantt1.Columns[2].LevelKey = "1";
axGantt1.Columns[3].LevelKey = "1";
axGantt1.Columns[4].LevelKey = "1";
axGantt1.AutoDrag = EXGANTTLib.AutoDragEnum.exAutoDragCopyText;
axGantt1.SingleSel = false;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items[1];
var_Items.set_SelectItem(h,true);
h = var_Items[3];
var_Items.set_SelectItem(h,true);
h = var_Items[4];
var_Items.set_SelectItem(h,true);
h = var_Items[5];
var_Items.set_SelectItem(h,true);
var_Items.set_LockedItemCount(EXGANTTLib.VAlignmentEnum.BottomAlignment,1);
h = var_Items.get_LockedItem(EXGANTTLib.VAlignmentEnum.BottomAlignment,0);
var_Items.set_CellCaption(h,0,"<font ;16>Click the selection and <b>wait to start dragging</b>, and then drop to Microsoft Word, Excel, ...");
var_Items.set_CellSingleLine(h,0,EXGANTTLib.CellSingleLineEnum.exCaptionWordWrap);
var_Items.set_CellCaptionFormat(h,0,EXGANTTLib.CaptionFormatEnum.exHTML);
var_Items.set_CellHAlignment(h,0,EXGANTTLib.AlignmentEnum.CenterAlignment);
var_Items.set_ItemDivider(h,0);
var_Items.set_ItemDividerLineAlignment(h,EXGANTTLib.DividerAlignmentEnum.DividerTop);
axGantt1.EndUpdate();
|
797
|
Is it possible to change the indentation during the drag and drop

axGantt1.BeginUpdate();
axGantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axGantt1.AutoDrag = EXGANTTLib.AutoDragEnum.exAutoDragPositionAny;
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exNoLinesAtRoot;
axGantt1.HasLines = EXGANTTLib.HierarchyLineEnum.exSolidLine;
axGantt1.HasButtons = EXGANTTLib.ExpandButtonEnum.exWPlus;
axGantt1.ShowFocusRect = false;
axGantt1.SelBackMode = EXGANTTLib.BackModeEnum.exTransparent;
axGantt1.Columns.Add("Task");
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.ShowNonworkingDates = false;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,128);
var_Chart.LevelCount = 2;
var_Chart.Bars["Task"].Color = 0x1000000;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Group 1");
var_Items.set_ItemBold(h,true);
var_Items.set_ItemDivider(h,0);
int h1 = var_Items.InsertItem(h,null,"Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
int h2 = var_Items.InsertItem(h1,null,"Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
h2 = var_Items.InsertItem(h1,null,"Task 3");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.AddLink("L1",h1,"K1",h2,"K2");
var_Items.set_Link("L1",EXGANTTLib.LinkPropertyEnum.exLinkText,"L1");
int h3 = var_Items.InsertItem(h,null,"Task 3");
var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddLink("L2",h2,"K2",h3,"K3");
var_Items.set_Link("L2",EXGANTTLib.LinkPropertyEnum.exLinkText,"L2");
var_Items.set_ExpandItem(h,true);
var_Items.set_ExpandItem(h1,true);
h = var_Items.AddItem("Group 2");
var_Items.set_ItemBold(h,true);
var_Items.set_ItemDivider(h,0);
var_Items.set_LockedItemCount(EXGANTTLib.VAlignmentEnum.BottomAlignment,1);
h = var_Items.get_LockedItem(EXGANTTLib.VAlignmentEnum.BottomAlignment,0);
var_Items.set_CellCaption(h,0,"Click a row, and move by dragging <b>up, down</b> to change the row's parent or <b>left,right</b> to increase or decrease the i" +
"ndentation.");
var_Items.set_CellSingleLine(h,0,EXGANTTLib.CellSingleLineEnum.exCaptionWordWrap);
var_Items.set_CellCaptionFormat(h,0,EXGANTTLib.CaptionFormatEnum.exHTML);
axGantt1.EndUpdate();
|
796
|
Is it possible to allow moving an item to another, but keeping its indentation

axGantt1.BeginUpdate();
axGantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axGantt1.AutoDrag = EXGANTTLib.AutoDragEnum.exAutoDragPositionKeepIndent;
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exNoLinesAtRoot;
axGantt1.HasLines = EXGANTTLib.HierarchyLineEnum.exThinLine;
axGantt1.ShowFocusRect = false;
axGantt1.Columns.Add("Task");
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.ShowNonworkingDates = false;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,96);
var_Chart.LevelCount = 2;
var_Chart.Bars["Task"].Color = 0x1000000;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Group 1");
var_Items.set_ItemDivider(h,0);
var_Items.set_ItemBold(h,true);
int h1 = var_Items.InsertItem(h,null,"Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
int h2 = var_Items.InsertItem(h,null,"Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.AddLink("L1",h1,"K1",h2,"K2");
var_Items.set_Link("L1",EXGANTTLib.LinkPropertyEnum.exLinkText,"L1");
int h3 = var_Items.InsertItem(h,null,"Task 3");
var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddLink("L2",h2,"K2",h3,"K3");
var_Items.set_Link("L2",EXGANTTLib.LinkPropertyEnum.exLinkText,"L2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Group 2");
var_Items.set_ItemBold(h,true);
var_Items.set_ItemDivider(h,0);
axGantt1.EndUpdate();
|
795
|
How can I change the row's position to another, by drag and drop. Is it possible

axGantt1.BeginUpdate();
axGantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axGantt1.AutoDrag = EXGANTTLib.AutoDragEnum.exAutoDragPosition;
axGantt1.Columns.Add("Task");
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.ShowNonworkingDates = false;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,64);
var_Chart.LevelCount = 2;
var_Chart.Bars["Task"].Color = 0x1000000;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
int h2 = var_Items.AddItem("Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.AddLink("L1",h1,"K1",h2,"K2");
var_Items.set_Link("L1",EXGANTTLib.LinkPropertyEnum.exLinkText,"L1");
int h3 = var_Items.AddItem("Task 3");
var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddLink("L2",h2,"K2",h3,"K3");
var_Items.set_Link("L2",EXGANTTLib.LinkPropertyEnum.exLinkText,"L2");
axGantt1.EndUpdate();
|
794
|
Have seen the RenderType, but do not know what kind of values should I use

axGantt1.BeginUpdate();
axGantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axGantt1.Columns.Add("Task");
(axGantt1.GetOcx() as EXGANTTLib.Gantt).BackColorHeader = 0x1000000;
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.BackColorLevelHeader = 0x1000000;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,64);
var_Chart.LevelCount = 2;
var_Chart.Bars["Task"].Color = 0x1000000;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
int h2 = var_Items.AddItem("Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.AddLink("L1",h1,"K1",h2,"K2");
var_Items.set_Link("L1",EXGANTTLib.LinkPropertyEnum.exLinkText,"L1");
int h3 = var_Items.AddItem("Task 3");
var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddLink("L2",h2,"K2",h3,"K3");
var_Items.set_Link("L2",EXGANTTLib.LinkPropertyEnum.exLinkText,"L2");
axGantt1.VisualAppearance.RenderType = -2147483393;
axGantt1.EndUpdate();
|
793
|
I have several columns, but noticed that the filter is using AND between columns, but I need OR clause for filtering. Is it possible

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Item") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.Filter = "Child 1";
var_Column.FilterType = EXGANTTLib.FilterTypeEnum.exFilter;
EXGANTTLib.Column var_Column1 = (axGantt1.Columns.Add("Date") as EXGANTTLib.Column);
var_Column1.DisplayFilterButton = true;
var_Column1.DisplayFilterPattern = false;
var_Column1.DisplayFilterDate = true;
var_Column1.FilterList = EXGANTTLib.FilterListEnum.exShowExclude | EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exShowCheckBox | EXGANTTLib.FilterListEnum.exNoItems;
var_Column1.Filter = Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")).ToString();
var_Column1.FilterType = EXGANTTLib.FilterTypeEnum.exDate;
axGantt1.FilterCriteria = "%0 or %1";
axGantt1.set_Description(EXGANTTLib.DescriptionTypeEnum.exFilterBarOr,"<font ;18><fgcolor=FF0000>or</fgcolor></font>");
axGantt1.set_Description(EXGANTTLib.DescriptionTypeEnum.exFilterBarAnd,"<font ;18><fgcolor=FF0000>and</fgcolor></font>");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1"),1,Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2"),1,Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1"),1,Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2"),1,Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axGantt1.ApplyFilter();
axGantt1.EndUpdate();
|
792
|
Is it possible exclude the dates being selected in the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Date") as EXGANTTLib.Column);
var_Column.SortType = EXGANTTLib.SortTypeEnum.SortDate;
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.DisplayFilterDate = true;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowExclude | EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exShowCheckBox | EXGANTTLib.FilterListEnum.exNoItems;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axGantt1.EndUpdate();
|
791
|
How can I display a calendar control inside the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Date") as EXGANTTLib.Column);
var_Column.SortType = EXGANTTLib.SortTypeEnum.SortDate;
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.DisplayFilterDate = true;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exShowCheckBox | EXGANTTLib.FilterListEnum.exNoItems;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axGantt1.EndUpdate();
|
790
|
Is it possible to include the dates as checkb-boxes in the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Dates") as EXGANTTLib.Column);
var_Column.SortType = EXGANTTLib.SortTypeEnum.SortDate;
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = true;
var_Column.DisplayFilterDate = true;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exShowCheckBox;
var_Column.Filter = "to 12/27/2010";
var_Column.FilterType = EXGANTTLib.FilterTypeEnum.exDate;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axGantt1.ApplyFilter();
axGantt1.EndUpdate();
|
789
|
How can I filter items for dates before a specified date

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Dates") as EXGANTTLib.Column);
var_Column.SortType = EXGANTTLib.SortTypeEnum.SortDate;
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = true;
var_Column.DisplayFilterDate = true;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exNoItems;
var_Column.Filter = "to 12/27/2010";
var_Column.FilterType = EXGANTTLib.FilterTypeEnum.exDate;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axGantt1.ApplyFilter();
axGantt1.EndUpdate();
|
788
|
Is it possible to filter dates

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Dates") as EXGANTTLib.Column);
var_Column.SortType = EXGANTTLib.SortTypeEnum.SortDate;
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = true;
var_Column.DisplayFilterDate = true;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exNoItems;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddItem(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axGantt1.EndUpdate();
|
787
|
Is it possible to change the Exclude field name to something different, in the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
axGantt1.set_Description(EXGANTTLib.DescriptionTypeEnum.exFilterBarExclude,"Leaving out");
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowExclude | EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exShowCheckBox;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
axGantt1.EndUpdate();
|
786
|
How can I display the Exclude field in the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowExclude | EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exShowCheckBox;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
axGantt1.EndUpdate();
|
785
|
Is it possible to show and ensure the focused item from the control, in the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowFocusItem | EXGANTTLib.FilterListEnum.exShowCheckBox;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.set_SelectItem(var_Items.InsertItem(h,null,"Child 2"),true);
var_Items.set_ExpandItem(h,true);
axGantt1.EndUpdate();
|
784
|
Is it possible to show only blanks items with no listed items from the control

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowBlanks | EXGANTTLib.FilterListEnum.exNoItems;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
axGantt1.EndUpdate();
|
783
|
How can I include the blanks items in the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowBlanks | EXGANTTLib.FilterListEnum.exShowCheckBox;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
axGantt1.EndUpdate();
|
782
|
How can I select multiple items in the drop down filter window, using check-boxes

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exShowCheckBox;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
axGantt1.EndUpdate();
|
781
|
Is it possible to allow a single item being selected in the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exSingleSel;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
axGantt1.EndUpdate();
|
780
|
How can I display no (All) item in the drop down filter window

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
axGantt1.set_Description(EXGANTTLib.DescriptionTypeEnum.exFilterBarAll,"");
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = true;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exNoItems;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
axGantt1.EndUpdate();
|
779
|
Is it possible to display no items in the drop down filter window, so only the pattern is visible

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Items") as EXGANTTLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = true;
var_Column.FilterList = EXGANTTLib.FilterListEnum.exNoItems;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
axGantt1.EndUpdate();
|
778
|
How can I show the child items with no identation

axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exGroupLinesOutside;
axGantt1.Indent = 12;
axGantt1.HasLines = EXGANTTLib.HierarchyLineEnum.exThinLine;
axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.InsertItem(h,null,"Child 3");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.InsertItem(h,null,"Child 3");
|
777
|
Is there other ways of showing the hierarchy lines (exGroupLinesAtRoot)

axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exGroupLinesAtRoot;
axGantt1.Indent = 12;
axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.InsertItem(h,null,"Child 3");
var_Items.set_ExpandItem(h,true);
|
776
|
Is there other ways of showing the hierarchy lines (exGroupLinesOutside)

axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exGroupLinesOutside;
axGantt1.Indent = 12;
axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.InsertItem(h,null,"Child 3");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.InsertItem(h,null,"Child 3");
|
775
|
Is there other ways of showing the hierarchy lines (exGroupLinesInsideLeaf)

axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exGroupLinesInsideLeaf;
axGantt1.Indent = 12;
axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.InsertItem(h,null,"Child 3");
var_Items.set_ExpandItem(h,true);
|
774
|
Is there other ways of showing the hierarchy lines (exGroupLinesInside)

axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exGroupLinesInside;
axGantt1.Indent = 12;
axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.InsertItem(h,null,"Child 3");
var_Items.set_ExpandItem(h,true);
|
773
|
Is there other ways of showing the hierarchy lines (exGroupLines)

axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exGroupLines;
axGantt1.Indent = 12;
axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(var_Items.InsertItem(h,null,"Child 2"),null,"SubChild 2");
var_Items.InsertItem(h,null,"Child 3");
var_Items.set_ExpandItem(h,true);
|
772
|
Is it possible background color displayed when the mouse passes over an item

axGantt1.BeginUpdate();
axGantt1.Columns.Add("Def");
axGantt1.HotBackColor = Color.FromArgb(0,0,128);
axGantt1.HotForeColor = Color.FromArgb(255,255,255);
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem("Item A");
var_Items.AddItem("Item B");
var_Items.AddItem("Item C");
axGantt1.EndUpdate();
|
771
|
How can I simulate displaying groups

axGantt1.HasLines = EXGANTTLib.HierarchyLineEnum.exNoLine;
axGantt1.ScrollBySingleLine = true;
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
var_Columns.Add("Name");
var_Columns.Add("A");
var_Columns.Add("B");
var_Columns.Add("C");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Group 1");
var_Items.set_CellHAlignment(h,0,EXGANTTLib.AlignmentEnum.CenterAlignment);
var_Items.set_ItemDivider(h,0);
var_Items.set_ItemDividerLineAlignment(h,EXGANTTLib.DividerAlignmentEnum.DividerBoth);
var_Items.set_ItemHeight(h,24);
var_Items.set_SortableItem(h,false);
int h1 = var_Items.InsertItem(h,null,"Child 1");
var_Items.set_CellCaption(h1,1,1);
var_Items.set_CellCaption(h1,2,2);
var_Items.set_CellCaption(h1,3,3);
h1 = var_Items.InsertItem(h,null,"Child 2");
var_Items.set_CellCaption(h1,1,4);
var_Items.set_CellCaption(h1,2,5);
var_Items.set_CellCaption(h1,3,6);
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Group 2");
var_Items.set_CellHAlignment(h,0,EXGANTTLib.AlignmentEnum.CenterAlignment);
var_Items.set_ItemDivider(h,0);
var_Items.set_ItemDividerLineAlignment(h,EXGANTTLib.DividerAlignmentEnum.DividerBoth);
var_Items.set_ItemHeight(h,24);
var_Items.set_SortableItem(h,false);
h1 = var_Items.InsertItem(h,null,"Child 1");
var_Items.set_CellCaption(h1,1,1);
var_Items.set_CellCaption(h1,2,2);
var_Items.set_CellCaption(h1,3,3);
h1 = var_Items.InsertItem(h,null,"Child 2");
var_Items.set_CellCaption(h1,1,4);
var_Items.set_CellCaption(h1,2,5);
var_Items.set_CellCaption(h1,3,6);
var_Items.set_ExpandItem(h,true);
|
770
|
Is it possible to change the height for all items at once

axGantt1.BeginUpdate();
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
axGantt1.Columns.Add("Items");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(0,true);
axGantt1.EndUpdate();
axGantt1.DefaultItemHeight = 12;
axGantt1.Items.set_ItemHeight(0,12);
|
769
|
Is it possible to specify the cell's value but still want to display some formatted text instead the value

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.Columns.Add("Value");
axGantt1.Columns.Add("FormatCell");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem(1);
var_Items.set_CellCaption(h,1,12);
var_Items.set_FormatCell(h,1,"currency(value)");
h = var_Items.AddItem(Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaptionFormat(h,1,EXGANTTLib.CaptionFormatEnum.exHTML);
var_Items.set_FormatCell(h,1,"longdate(value) replace '2001' with '<b>2001</b>'");
axGantt1.EndUpdate();
|
768
|
Is it possible to specify the cell's value but still want to display some formatted text instead the value

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.MarkSearchColumn = false;
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
var_Columns.Add("Name");
EXGANTTLib.Column var_Column = (var_Columns.Add("Values") as EXGANTTLib.Column);
var_Column.SortType = EXGANTTLib.SortTypeEnum.SortNumeric;
var_Column.AllowSizing = false;
var_Column.Width = 64;
var_Column.FormatColumn = "((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)";
var_Column.set_Def(EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1);
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
var_Items.set_FormatCell(h,1,"'<none>'");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1"),1,10);
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2"),1,15);
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 3"),1,25);
var_Items.set_ExpandItem(h,true);
axGantt1.EndUpdate();
|
767
|
I am using the FormatColumn to display the current currency, but would like hide some values. Is it possible

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.MarkSearchColumn = false;
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
var_Columns.Add("Name");
EXGANTTLib.Column var_Column = (var_Columns.Add("Values") as EXGANTTLib.Column);
var_Column.SortType = EXGANTTLib.SortTypeEnum.SortNumeric;
var_Column.AllowSizing = false;
var_Column.Width = 64;
var_Column.FormatColumn = "((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)";
var_Column.set_Def(EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1);
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
var_Items.set_FormatCell(h,1," ");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1"),1,10);
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2"),1,15);
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 3"),1,25);
var_Items.set_ExpandItem(h,true);
axGantt1.EndUpdate();
|
766
|
How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)

axGantt1.BeginUpdate();
EXGANTTLib.ConditionalFormat var_ConditionalFormat = axGantt1.ConditionalFormats.Add("1","K1");
var_ConditionalFormat.BackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_ConditionalFormat.ApplyTo = (EXGANTTLib.FormatApplyToEnum)0x1;
EXGANTTLib.ConditionalFormat var_ConditionalFormat1 = axGantt1.ConditionalFormats.Add("1","K2");
var_ConditionalFormat1.BackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_ConditionalFormat1.ApplyTo = (EXGANTTLib.FormatApplyToEnum)0x2;
axGantt1.MarkSearchColumn = false;
axGantt1.DrawGridLines = EXGANTTLib.GridLinesEnum.exRowLines;
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
var_Columns.Add("Column 1");
var_Columns.Add("Column 2");
var_Columns.Add("Column 3");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(null);
var_Items.AddItem(null);
var_Items.AddItem(null);
axGantt1.EndUpdate();
|
765
|
How can I get the list of items as they are displayed
axGantt1.BeginUpdate();
axGantt1.BackColorAlternate = Color.FromArgb(240,240,240);
axGantt1.Columns.Add("Names");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem("Mantel");
var_Items.AddItem("Mechanik");
var_Items.AddItem("Motor");
var_Items.AddItem("Murks");
var_Items.AddItem("Märchen");
var_Items.AddItem("Möhren");
var_Items.AddItem("Mühle");
axGantt1.Columns[0].SortOrder = EXGANTTLib.SortOrderEnum.SortAscending;
axGantt1.EndUpdate();
System.Diagnostics.Debug.Print( axGantt1.GetItems(1).ToString() );
|
764
|
Is posible to reduce the size of the picture to be shown in the column's caption

axGantt1.BeginUpdate();
axGantt1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
axGantt1.HeaderHeight = 48;
(axGantt1.Columns.Add("DefaultSize") as EXGANTTLib.Column).HTMLCaption = "Default-Size <img>pic1</img> Picture";
(axGantt1.Columns.Add("CustomSize") as EXGANTTLib.Column).HTMLCaption = "Custom-Size <img>pic1:16</img> Picture";
axGantt1.EndUpdate();
|
763
|
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column

axGantt1.BeginUpdate();
axGantt1.MarkSearchColumn = false;
EXGANTTLib.ConditionalFormat var_ConditionalFormat = axGantt1.ConditionalFormats.Add("1",null);
var_ConditionalFormat.Bold = true;
var_ConditionalFormat.ForeColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_ConditionalFormat.ApplyTo = (EXGANTTLib.FormatApplyToEnum)0x1;
axGantt1.Columns.Add("C1");
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("C2") as EXGANTTLib.Column);
var_Column.HeaderBold = true;
var_Column.HTMLCaption = "<fgcolor=FF0000>C2";
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.set_CellCaption(var_Items.AddItem(10),1,11);
var_Items.set_CellCaption(var_Items.AddItem(12),1,13);
axGantt1.EndUpdate();
|
762
|
The item is not getting selected when clicking the cell's checkbox. What should I do

// CellStateChanged event - Fired after cell's state has been changed.
private void axGantt1_CellStateChanged(object sender, AxEXGANTTLib._IGanttEvents_CellStateChangedEvent e)
{
axGantt1.Items.set_SelectItem(e.item,true);
}
//this.axGantt1.CellStateChanged += new AxEXGANTTLib._IGanttEvents_CellStateChangedEventHandler(this.axGantt1_CellStateChanged);
(axGantt1.Columns.Add("Check") as EXGANTTLib.Column).set_Def(EXGANTTLib.DefColumnEnum.exCellHasCheckBox,true);
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
var_Items.AddItem(3);
|
761
|
Is it possible to limit the height of the item while resizing

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void axGantt1_AddItem(object sender, AxEXGANTTLib._IGanttEvents_AddItemEvent e)
{
axGantt1.Items.set_ItemMinHeight(e.item,18);
axGantt1.Items.set_ItemMaxHeight(e.item,72);
}
//this.axGantt1.AddItem += new AxEXGANTTLib._IGanttEvents_AddItemEventHandler(this.axGantt1_AddItem);
axGantt1.BeginUpdate();
axGantt1.ItemsAllowSizing = EXGANTTLib.ItemsAllowSizingEnum.exResizeItem;
axGantt1.ScrollBySingleLine = false;
axGantt1.BackColorAlternate = Color.FromArgb(240,240,240);
axGantt1.Columns.Add("Names");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem("Mantel");
var_Items.AddItem("Mechanik");
var_Items.AddItem("Motor");
var_Items.AddItem("Murks");
var_Items.AddItem("Märchen");
var_Items.AddItem("Möhren");
var_Items.AddItem("Mühle");
axGantt1.Columns[0].SortOrder = EXGANTTLib.SortOrderEnum.SortAscending;
axGantt1.EndUpdate();
|
760
|
Is it possible to copy the hierarchy of the control using the GetItems method

axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
axGantt1.Columns.Add("Def");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
axGantt1.PutItems(axGantt1.GetItems(-1),null);
|
759
|
Does your control supports multiple lines tooltip

axGantt1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
axGantt1.ToolTipDelay = 1;
(axGantt1.Columns.Add("tootip") as EXGANTTLib.Column).ToolTip = "<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The tooltip supports built-in HTML tags, " +
"icons and pictures.<br><br><br><img>pic1</img> picture ... <br><br>";
|
758
|
It is possible to write the word in red/color or to add a tooltip or a link to the word

axGantt1.Columns.Add("Task");
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/26/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,32);
EXGANTTLib.Items var_Items = axGantt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","some <fgcolor=FF0000>red</fgcolor> text");
var_Items.set_ItemBar(h1,"K1",EXGANTTLib.ItemBarPropertyEnum.exBarPercent,false);
var_Items.set_ItemBar(h1,"K1",EXGANTTLib.ItemBarPropertyEnum.exBarToolTip,"And here goes the <b>tooltip</b> of the text. ");
var_Items.AddItem("");
var_Items.AddItem("");
var_Items.AddItem("");
var_Items.AddItem("");
int h2 = var_Items.AddItem("Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.set_ItemBar(h2,"K2",EXGANTTLib.ItemBarPropertyEnum.exBarToolTip,"And here goes the <b>tooltip</b> of the bar. ");
var_Items.AddLink("L1",h1,"K1",h2,"K2");
var_Items.set_Link("L1",EXGANTTLib.LinkPropertyEnum.exLinkText,"L<b>inke</b>d to a bar");
var_Items.set_Link("L1",EXGANTTLib.LinkPropertyEnum.exLinkToolTip,"And here goes the <b>tooltip</b> of the link. ");
|
757
|
It is possible to use seconds/minutes/hours as time scale in your control, but using my regional settings

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.set_Label(EXGANTTLib.UnitEnum.exMonth,"<|><%loc_m1%><|><%loc_m2%><|><%loc_m3%><|><%loc_mmmm%><|><%loc_m3%> '<%yy%><|><%loc_mmmm%> <%yyyy%>");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%loc_m3%> <%d%>, '<%yy%><r><%ww%><|><%loc_mmmm%> <%d%>, <%yyyy%><r><%ww%><||><||>256");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exDay,"<|><%loc_d1%><|><%loc_d2%><|><%loc_d3%><|><%loc_dddd%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%><|><%loc_dddd%>, <%loc_mmmm%> <%d" +
"%>, <%yyyy%><||><||>4096");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exHour,"<|><%hh%><|><%h%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%> <%AM/PM%><|><%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%" +
"> <%h%> <%AM/PM%><||><||>65536");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exMinute,"<|><%nn%><|><%h%>:<%nn%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%loc_dddd%>, <%loc_mmmm%> " +
"<%d%>, <%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exSecond,"<|><%ss%><|><%nn%>:<%ss%><|><%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>" +
"<|><%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exMonth,"<%loc_mmmm%>/<%yyyy%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exWeek,"<%loc_mmmm%> <%d%>, <%yyyy%> <%ww%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exDay,"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exHour,"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%> <%AM/PM%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exMinute,"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exSecond,"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
EXGANTTLib.Chart var_Chart1 = axGantt1.Chart;
var_Chart1.set_PaneWidth(false,0);
var_Chart1.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart1.LevelCount = 4;
var_Chart1.get_Level(0).Label = 4096;
var_Chart1.get_Level(1).Label = 65536;
var_Chart1.get_Level(2).Label = 1048576;
EXGANTTLib.Level var_Level = var_Chart1.get_Level(3);
var_Level.Count = 15;
var_Level.Label = 16777216;
axGantt1.EndUpdate();
|
756
|
The chart's header is displayed in English. Can I change so it is the same as in my regional settings

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.set_Label(EXGANTTLib.UnitEnum.exMonth,"<|><%loc_m1%><|><%loc_m2%><|><%loc_m3%><|><%loc_mmmm%><|><%loc_m3%> '<%yy%><|><%loc_mmmm%> <%yyyy%>");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%loc_m3%> <%d%>, '<%yy%><r><%ww%><|><%loc_mmmm%> <%d%>, <%yyyy%><r><%ww%><||><||>256");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exDay,"<|><%loc_d1%><|><%loc_d2%><|><%loc_d3%><|><%loc_dddd%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%><|><%loc_dddd%>, <%loc_mmmm%> <%d" +
"%>, <%yyyy%><||><||>4096");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exHour,"<|><%hh%><|><%h%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%> <%AM/PM%><|><%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%" +
"> <%h%> <%AM/PM%><||><||>65536");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exMinute,"<|><%nn%><|><%h%>:<%nn%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%loc_dddd%>, <%loc_mmmm%> " +
"<%d%>, <%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exSecond,"<|><%ss%><|><%nn%>:<%ss%><|><%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>" +
"<|><%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exMonth,"<%loc_mmmm%>/<%yyyy%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exWeek,"<%loc_mmmm%> <%d%>, <%yyyy%> <%ww%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exDay,"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exHour,"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%> <%AM/PM%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exMinute,"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exSecond,"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
EXGANTTLib.Chart var_Chart1 = axGantt1.Chart;
var_Chart1.set_PaneWidth(false,0);
var_Chart1.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart1.LevelCount = 2;
var_Chart1.UnitScale = EXGANTTLib.UnitEnum.exDay;
axGantt1.EndUpdate();
|
755
|
It is possible to use seconds/minutes/hours as time scale in your control

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.set_PaneWidth(false,0);
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 4;
var_Chart.get_Level(0).Label = 4096;
var_Chart.get_Level(1).Label = 65536;
var_Chart.get_Level(2).Label = 1048576;
EXGANTTLib.Level var_Level = var_Chart.get_Level(3);
var_Level.Count = 15;
var_Level.Label = 16777216;
axGantt1.EndUpdate();
|
754
|
How can I prevent highlighting the column from the cursor - point

axGantt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZLhEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJ" +
"gEgI=");
axGantt1.set_Background(EXGANTTLib.BackgroundPartEnum.exCursorHoverColumn,0x1000000);
(axGantt1.Columns.Add("S") as EXGANTTLib.Column).Width = 32;
(axGantt1.Columns.Add("Level 1") as EXGANTTLib.Column).LevelKey = 1;
(axGantt1.Columns.Add("Level 2") as EXGANTTLib.Column).LevelKey = 1;
(axGantt1.Columns.Add("Level 3") as EXGANTTLib.Column).LevelKey = 1;
(axGantt1.Columns.Add("E1") as EXGANTTLib.Column).Width = 32;
(axGantt1.Columns.Add("E2") as EXGANTTLib.Column).Width = 32;
(axGantt1.Columns.Add("E3") as EXGANTTLib.Column).Width = 32;
(axGantt1.Columns.Add("E4") as EXGANTTLib.Column).Width = 32;
|
753
|
Can I use and display PNG pictures

axGantt1.set_HTMLPicture("pic1","c:\\exontrol\\images\\card.png");
axGantt1.HeaderHeight = 48;
(axGantt1.Columns.Add("ColumnName") as EXGANTTLib.Column).HTMLCaption = "<b>HTML</b> Column <img>pic1</img> Picture";
|
752
|
Is it possible to specify the background color for the item in the chart part only

axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
int hC = var_Items.InsertItem(h,null,"Child 1");
axGantt1.Chart.set_ItemBackColor(hC,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
|
751
|
Is it possible to apply different visual appearance, color, sizes for item in the list and chart part

axGantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axGantt1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn");
axGantt1.VisualAppearance.Add(3,"CP:2 2 2 -2 -2");
axGantt1.Columns.Add("Default");
axGantt1.SelBackMode = EXGANTTLib.BackModeEnum.exTransparent;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
int hC = var_Items.InsertItem(h,null,"Child 1");
var_Items.set_ItemBackColor(hC,0x1ffff00);
axGantt1.Chart.set_ItemBackColor(hC,0x300ff00);
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
|
750
|
How do I change the visual appearance for the entire item, using your EBN technology

axGantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
int hC = var_Items.InsertItem(h,null,"Child 1");
var_Items.set_ItemBackColor(hC,0x1000000);
axGantt1.Chart.set_ItemBackColor(hC,0x1000000);
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
|
749
|
is it possible to specify the a different background color for the item, list and chart part

axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
int hC = var_Items.InsertItem(h,null,"Child 1");
var_Items.set_ItemBackColor(hC,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
axGantt1.Chart.set_ItemBackColor(hC,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,0)));
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
|
748
|
Is it possible to specify the background color for the entire row, including the chart part

axGantt1.Columns.Add("Default");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Root");
int hC = var_Items.InsertItem(h,null,"Child 1");
var_Items.set_ItemBackColor(hC,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
axGantt1.Chart.set_ItemBackColor(hC,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
|
747
|
How can I show the tooltip programmatically ( I want to be able to set the tooltip content dynamically just before the tooltip start to appear, not using the exBarTooltip )

// MouseMove event - Occurs when the user moves the mouse.
private void axGantt1_MouseMoveEvent(object sender, AxEXGANTTLib._IGanttEvents_MouseMoveEvent e)
{
axGantt1.ShowToolTip(axGantt1.Chart.get_BarFromPoint(-1,-1),"","8","8",null);
}
//this.axGantt1.MouseMoveEvent += new AxEXGANTTLib._IGanttEvents_MouseMoveEventHandler(this.axGantt1_MouseMoveEvent);
axGantt1.BeginUpdate();
axGantt1.Columns.Add("Def");
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.set_PaneWidth(false,64);
var_Chart.LevelCount = 2;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C");
axGantt1.EndUpdate();
|
746
|
Is it possible to move an item from a parent to another

axGantt1.BeginUpdate();
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
axGantt1.Columns.Add("Items");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem("A");
var_Items.AddItem("B");
var_Items.InsertItem(var_Items.AddItem("C"),"","D");
var_Items.SetParent(var_Items.get_FindItem("D",0,null),var_Items.get_FindItem("A",0,null));
axGantt1.EndUpdate();
|
745
|
How can I change the identation for an item

axGantt1.BeginUpdate();
axGantt1.LinesAtRoot = EXGANTTLib.LinesAtRootEnum.exLinesAtRoot;
axGantt1.Columns.Add("Items");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem("A");
var_Items.AddItem("B");
var_Items.InsertItem(var_Items.AddItem("C"),"","D");
var_Items.SetParent(var_Items.get_FindItem("D",0,null),0);
axGantt1.EndUpdate();
|
744
|
How can I specify the levels using the user's Regional and Language Options

axGantt1.BeginUpdate();
axGantt1.Font.Name = "Arial Unicode MS";
axGantt1.HeaderHeight = 36;
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("5/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,0);
var_Chart.FirstWeekDay = EXGANTTLib.WeekDayEnum.exMonday;
var_Chart.UnitWidth = 36;
var_Chart.LevelCount = 2;
EXGANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<b><%loc_mmmm%></b> <%yyyy%><br><%loc_sdate%><r> <%ww%> ";
var_Level.ToolTip = var_Level.Label;
var_Level.Unit = EXGANTTLib.UnitEnum.exWeek;
EXGANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = "<%loc_ddd%><br><%d%>";
var_Level1.ToolTip = var_Level1.Label;
var_Chart.ToolTip = "<%loc_ldate%>";
axGantt1.EndUpdate();
|
743
|
How can I display a bar only using a gradient color and shadow

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
EXGANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar.EndColor = var_Bar.Color;
axGantt1.Columns.Add("Types");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
int h = var_Items.AddItem("W/h Gradient");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",EXGANTTLib.ItemBarPropertyEnum.exBarPattern,8291);
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
742
|
Is it possible to display a bar only using a gradient color using the exBarColor option

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
EXGANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar.EndColor = var_Bar.StartColor;
var_Bar.Height = 17;
axGantt1.Columns.Add("Types");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
int h = var_Items.AddItem("W/h Gradient");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",EXGANTTLib.ItemBarPropertyEnum.exBarPattern,227);
h = var_Items.AddItem("W/h Color");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",EXGANTTLib.ItemBarPropertyEnum.exBarPattern,227);
var_Items.set_ItemBar(h,"",EXGANTTLib.ItemBarPropertyEnum.exBarColor,255);
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
741
|
Is it possible to display a bar only using a gradient color

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
EXGANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar.EndColor = var_Bar.StartColor;
var_Bar.Height = 17;
axGantt1.Columns.Add("Types");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
int h = var_Items.AddItem("W/h Gradient");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",EXGANTTLib.ItemBarPropertyEnum.exBarPattern,227);
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
740
|
Is it possible to display a bar only using a gradient color

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
EXGANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar.EndColor = var_Bar.Color;
axGantt1.Columns.Add("Types");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
int h = var_Items.AddItem("W/h Gradient");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",EXGANTTLib.ItemBarPropertyEnum.exBarPattern,99);
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
739
|
How can I display a specified bar only with a thicker border

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
axGantt1.Columns.Add("Types");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
int h = var_Items.AddItem("W/h Border");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",EXGANTTLib.ItemBarPropertyEnum.exBarPattern,4099);
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
738
|
Is it possible to display the shadow for a specified bar

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
axGantt1.Columns.Add("Types");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
int h = var_Items.AddItem("W/h Shadow");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",EXGANTTLib.ItemBarPropertyEnum.exBarPattern,8195);
var_Items.AddBar(var_Items.AddItem("Original"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
737
|
Is it possible to display the task bars with a gradient color

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
var_Chart.Bars.Copy("Task","TaskO");
EXGANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.Pattern = EXGANTTLib.PatternEnum.exPatternGradientVBox | EXGANTTLib.PatternEnum.exPatternBox | EXGANTTLib.PatternEnum.exPatternShadow;
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar.EndColor = var_Bar.Color;
axGantt1.Columns.Add("Types");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Original"),"TaskO",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Pattern Gradient"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Original"),"TaskO",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
736
|
How can I know the type of bars I can displays using predefined patterns

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
EXGANTTLib.Bars var_Bars = var_Chart.Bars;
var_Bars.Add("Box").Pattern = EXGANTTLib.PatternEnum.exPatternBox;
var_Bars.Add("ThickBox").Pattern = EXGANTTLib.PatternEnum.exPatternThickBox | EXGANTTLib.PatternEnum.exPatternBox;
var_Bars.Add("DiagBox").Pattern = EXGANTTLib.PatternEnum.exPatternThickBox | EXGANTTLib.PatternEnum.exPatternBDiagonal;
var_Bars.Copy("Task","Shadow").Pattern = EXGANTTLib.PatternEnum.exPatternFrameShadow | EXGANTTLib.PatternEnum.exPatternShadow;
var_Bars.Copy("Task","TShadow").Pattern = EXGANTTLib.PatternEnum.exPatternFrameShadow | EXGANTTLib.PatternEnum.exPatternThickBox | EXGANTTLib.PatternEnum.exPatternDiagCross;
EXGANTTLib.Bar var_Bar = var_Bars.Add("HGrad1");
var_Bar.Pattern = EXGANTTLib.PatternEnum.exPatternBox;
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar.EndColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
EXGANTTLib.Bar var_Bar1 = var_Bars.Add("HGrad2");
var_Bar1.Pattern = EXGANTTLib.PatternEnum.exPatternBox | EXGANTTLib.PatternEnum.exPatternShadow;
var_Bar1.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar1.EndColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
var_Bar1.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
EXGANTTLib.Bar var_Bar2 = var_Bars.Add("HGrad3");
var_Bar2.Pattern = EXGANTTLib.PatternEnum.exPatternGradient3Colors | EXGANTTLib.PatternEnum.exPatternBox | EXGANTTLib.PatternEnum.exPatternShadow;
var_Bar2.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar2.EndColor = var_Bar2.StartColor;
var_Bar2.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
EXGANTTLib.Bar var_Bar3 = var_Bars.Add("HGrad4");
var_Bar3.Pattern = EXGANTTLib.PatternEnum.exPatternThickBox | EXGANTTLib.PatternEnum.exPatternGradient3Colors | EXGANTTLib.PatternEnum.exPatternBox;
var_Bar3.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar3.EndColor = var_Bar3.StartColor;
var_Bar3.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
EXGANTTLib.Bar var_Bar4 = var_Bars.Add("HGrad5");
var_Bar4.Pattern = EXGANTTLib.PatternEnum.exPatternFrameShadow | EXGANTTLib.PatternEnum.exPatternGradient3Colors | EXGANTTLib.PatternEnum.exPatternBox;
var_Bar4.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
var_Bar4.EndColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_Bar4.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
EXGANTTLib.Bar var_Bar5 = var_Bars.Add("VGrad1");
var_Bar5.Pattern = EXGANTTLib.PatternEnum.exPatternGradientVBox | EXGANTTLib.PatternEnum.exPatternBox;
var_Bar5.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar5.EndColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
var_Bar5.Height = 14;
EXGANTTLib.Bar var_Bar6 = var_Bars.Add("VGrad2");
var_Bar6.Pattern = EXGANTTLib.PatternEnum.exPatternGradientVBox | EXGANTTLib.PatternEnum.exPatternBox | EXGANTTLib.PatternEnum.exPatternShadow;
var_Bar6.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar6.EndColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
var_Bar6.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
var_Bar6.Height = 14;
EXGANTTLib.Bar var_Bar7 = var_Bars.Add("VGrad3");
var_Bar7.Pattern = EXGANTTLib.PatternEnum.exPatternGradient3Colors | EXGANTTLib.PatternEnum.exPatternGradientVBox | EXGANTTLib.PatternEnum.exPatternBox | EXGANTTLib.PatternEnum.exPatternShadow;
var_Bar7.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar7.EndColor = var_Bar7.StartColor;
var_Bar7.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
var_Bar7.Height = 14;
EXGANTTLib.Bar var_Bar8 = var_Bars.Add("VGrad4");
var_Bar8.Pattern = EXGANTTLib.PatternEnum.exPatternThickBox | EXGANTTLib.PatternEnum.exPatternGradient3Colors | EXGANTTLib.PatternEnum.exPatternGradientVBox | EXGANTTLib.PatternEnum.exPatternBox;
var_Bar8.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255));
var_Bar8.EndColor = var_Bar8.StartColor;
var_Bar8.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
var_Bar8.Height = -1;
EXGANTTLib.Bar var_Bar9 = var_Bars.Add("VGrad5");
var_Bar9.Pattern = EXGANTTLib.PatternEnum.exPatternFrameShadow | EXGANTTLib.PatternEnum.exPatternGradient3Colors | EXGANTTLib.PatternEnum.exPatternGradientVBox | EXGANTTLib.PatternEnum.exPatternBox;
var_Bar9.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
var_Bar9.EndColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_Bar9.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
var_Bar9.Height = 14;
axGantt1.Columns.Add("Types");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Box"),"Box",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Thick Box"),"ThickBox",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Thick Box Diag"),"DiagBox",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Shadow"),"Shadow",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Thick Shadow"),"TShadow",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Solid Gradient"),"HGrad1",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Pattern Gradient"),"HGrad2",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Pattern Gradient 3 Colors"),"HGrad3",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Solid Gradient 3 Colors"),"HGrad4",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Gradient Shadow"),"HGrad5",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Solid Gradient"),"VGrad1",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Pattern Gradient"),"VGrad2",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Pattern Gradient 3 Colors"),"VGrad3",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Solid Gradient 3 Colors"),"VGrad4",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Gradient Shadow"),"VGrad5",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
735
|
Is it possible to display the bars with a thicker border

axGantt1.BeginUpdate();
axGantt1.Columns.Add("Task");
axGantt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axGantt1.Chart.set_PaneWidth(false,48);
axGantt1.Chart.Bars.Copy("Task","TaskB").Pattern = EXGANTTLib.PatternEnum.exPatternThickBox | EXGANTTLib.PatternEnum.exPatternShadow;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"TaskB",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
734
|
Is it possible to display the shadow for EBN bars

axGantt1.BeginUpdate();
axGantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axGantt1.Columns.Add("Task");
axGantt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axGantt1.Chart.set_PaneWidth(false,48);
EXGANTTLib.Bar var_Bar = axGantt1.Chart.Bars.Copy("Task","EBN");
var_Bar.Color = 0x1000000;
var_Bar.Pattern = EXGANTTLib.PatternEnum.exPatternFrameShadow;
axGantt1.Chart.Bars.Copy("Task","EBN2").Color = 0x1000000;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"EBN2",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"EBN",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Task 3"),"EBN2",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
733
|
Can I display a shadow for my bars

axGantt1.BeginUpdate();
axGantt1.Columns.Add("Task");
axGantt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axGantt1.Chart.set_PaneWidth(false,48);
axGantt1.Chart.Bars["Task"].Pattern = EXGANTTLib.PatternEnum.exPatternFrameShadow | EXGANTTLib.PatternEnum.exPatternShadow;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
732
|
How can I use the Color property for gradient bars

axGantt1.BeginUpdate();
axGantt1.Columns.Add("Task");
axGantt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axGantt1.Chart.set_PaneWidth(false,48);
EXGANTTLib.Bar var_Bar = axGantt1.Chart.Bars.Add("V");
var_Bar.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
var_Bar.EndColor = var_Bar.StartColor;
var_Bar.Pattern = EXGANTTLib.PatternEnum.exPatternGradient3Colors | EXGANTTLib.PatternEnum.exPatternGradientVBox | EXGANTTLib.PatternEnum.exPatternBox;
var_Bar.Height = -1;
EXGANTTLib.Bar var_Bar1 = axGantt1.Chart.Bars.Add("H");
var_Bar1.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_Bar1.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
var_Bar1.EndColor = var_Bar1.StartColor;
var_Bar1.Pattern = EXGANTTLib.PatternEnum.exPatternGradient3Colors | EXGANTTLib.PatternEnum.exPatternBox;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"V",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"H",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axGantt1.EndUpdate();
|
731
|
Is there any option to show bars with vertical gradient

axGantt1.Columns.Add("Task");
axGantt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXGANTTLib.Bar var_Bar = axGantt1.Chart.Bars["Task"];
var_Bar.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
var_Bar.EndColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,0));
var_Bar.Pattern = EXGANTTLib.PatternEnum.exPatternGradientVBox | EXGANTTLib.PatternEnum.exPatternBox;
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
|
730
|
How can I define a new milestone bar

axGantt1.BeginUpdate();
axGantt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
axGantt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXGANTTLib.Bars var_Bars = axGantt1.Chart.Bars;
var_Bars.AddShapeCorner(12345,1);
var_Bars.AddShapeCorner(12346,2);
var_Bars.Copy("Milestone","M1").StartShape = (EXGANTTLib.ShapeCornerEnum)0x3020 | EXGANTTLib.ShapeCornerEnum.exShapeIconVBar | EXGANTTLib.ShapeCornerEnum.exShapeIconRight;
var_Bars.Copy("Milestone","M2").StartShape = (EXGANTTLib.ShapeCornerEnum)0x3020 | EXGANTTLib.ShapeCornerEnum.exShapeIconSquare | EXGANTTLib.ShapeCornerEnum.exShapeIconRight;
EXGANTTLib.Bar var_Bar = var_Bars.Copy("Milestone","MP");
var_Bar.StartShape = EXGANTTLib.ShapeCornerEnum.exShapeIconStar;
var_Bar.StartColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
axGantt1.Columns.Add("Column");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Default"),"Milestone",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Predefined"),"MP",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Custom 1"),"M1",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Custom 2"),"M2",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axGantt1.EndUpdate();
|
729
|
How can I define my milestone bar, using my icons or pictures

axGantt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
axGantt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXGANTTLib.Bars var_Bars = axGantt1.Chart.Bars;
var_Bars.AddShapeCorner(12345,1);
var_Bars["Milestone"].StartShape = (EXGANTTLib.ShapeCornerEnum)0x3020 | EXGANTTLib.ShapeCornerEnum.exShapeIconVBar | EXGANTTLib.ShapeCornerEnum.exShapeIconRight;
axGantt1.Columns.Add("Column");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Milestone",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
|
728
|
I haven't found options to localize (in Italian) the strings ( dates, tooltip ) that shows in the chart area

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,0);
var_Chart.set_Label(EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exDay,"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <%yyyy%><||><||>4096");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exWeek,"<%d%> <%mmmm%> <%yyyy%> <%ww%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exDay,"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
var_Chart.FirstWeekDay = EXGANTTLib.WeekDayEnum.exMonday;
var_Chart.MonthNames = "gennaio febbraio marzo aprile maggio giugno luglio agosto settembre ottobre novembre dicembre";
var_Chart.WeekDays = "domenica lunedì martedì mercoledì giovedì venerdì sabato";
var_Chart.ToolTip = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>";
var_Chart.UnitScale = EXGANTTLib.UnitEnum.exDay;
axGantt1.EndUpdate();
|
727
|
I haven't found options to localize (in Dutch) the strings ( dates, tooltip ) that shows in the chart area

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,0);
var_Chart.set_Label(EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exDay,"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <%yyyy%><||><||>4096");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exWeek,"<%d%> <%mmmm%> <%yyyy%> <%ww%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exDay,"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
var_Chart.FirstWeekDay = EXGANTTLib.WeekDayEnum.exMonday;
var_Chart.MonthNames = "januari februari maart april mei juni juli augusts september oktober november december";
var_Chart.WeekDays = "zondag maandag dinsdag woensdag donderdag vrijdag zaterdag";
var_Chart.ToolTip = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>";
var_Chart.UnitScale = EXGANTTLib.UnitEnum.exDay;
axGantt1.EndUpdate();
|
726
|
I haven't found options to localize (in German) the strings ( dates, tooltip ) that shows in the chart area

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,0);
var_Chart.set_Label(EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%>.<%mmmm%> <%yyyy%><r><%ww%><||><||>256");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exDay,"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%>.<%m3%> '<%yy%><|><%dddd%> <%d%>.<%mmmm%> <%yyyy%><||><||>4096");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exWeek,"<%d%>.<%mmmm%> <%yyyy%> <%ww%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exDay,"<%dddd%>, <%d%>.<%mmmm%> <%yyyy%>");
var_Chart.FirstWeekDay = EXGANTTLib.WeekDayEnum.exMonday;
var_Chart.MonthNames = "Januar Februar März April Mai Juni Juli August September Oktober November Dezember";
var_Chart.WeekDays = "Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag";
var_Chart.ToolTip = "<%dddd%>,<%d%>.<%mmmm%> <%yyyy%>";
var_Chart.UnitScale = EXGANTTLib.UnitEnum.exDay;
axGantt1.EndUpdate();
|
725
|
I haven't found options to localize (in French) the strings ( dates, tooltip ) that shows in the chart area

axGantt1.BeginUpdate();
EXGANTTLib.Chart var_Chart = axGantt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,0);
var_Chart.set_Label(EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256");
var_Chart.set_Label(EXGANTTLib.UnitEnum.exDay,"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <%yyyy%><||><||>4096");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exWeek,"<%d%> <%mmmm%> <%yyyy%> <%ww%>");
var_Chart.set_LabelToolTip(EXGANTTLib.UnitEnum.exDay,"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
var_Chart.FirstWeekDay = EXGANTTLib.WeekDayEnum.exMonday;
var_Chart.MonthNames = "janvier février mars avril mai juin juillet août septembre octobre novembre décembre";
var_Chart.WeekDays = "dimanche lundi mardi mercredi jeudi vendredi samedi";
var_Chart.ToolTip = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>";
var_Chart.UnitScale = EXGANTTLib.UnitEnum.exDay;
axGantt1.EndUpdate();
|
724
|
How can I filter programatically using more columns

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
var_Columns.Add("Car");
var_Columns.Add("Equipment");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag");
var_Items.set_CellCaption(var_Items.AddItem("Toyota"),1,"Air Bag,Air condition");
var_Items.set_CellCaption(var_Items.AddItem("Ford"),1,"Air condition");
var_Items.set_CellCaption(var_Items.AddItem("Nissan"),1,"Air Bag,ABS,ESP");
var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag, ABS,ESP");
var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"ABS,ESP");
EXGANTTLib.Column var_Column = axGantt1.Columns["Car"];
var_Column.FilterType = EXGANTTLib.FilterTypeEnum.exFilter;
var_Column.Filter = "Mazda";
EXGANTTLib.Column var_Column1 = axGantt1.Columns["Equipment"];
var_Column1.FilterType = EXGANTTLib.FilterTypeEnum.exPattern;
var_Column1.Filter = "*ABS*|*ESP*";
axGantt1.ApplyFilter();
axGantt1.EndUpdate();
|
723
|
I have seen the IN function but it returns -1 or 0. How can I display the value being found ( SWITCH usage )

axGantt1.BeginUpdate();
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Value") as EXGANTTLib.Column);
var_Column.Width = 24;
EXGANTTLib.Column var_Column1 = (axGantt1.Columns.Add("SWITCH - statment") as EXGANTTLib.Column);
var_Column1.ComputedField = "%0 switch ('not found', 1,2,3,4,5,7,8,9,11,13,14)";
var_Column1.ToolTip = var_Column1.ComputedField;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
axGantt1.EndUpdate();
|
722
|
I have a large collection of constant values and using or operator is a time consuming (IN usage). Is there any way to increase the speed to check if a value maches the collection

axGantt1.BeginUpdate();
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Value") as EXGANTTLib.Column);
var_Column.Width = 24;
EXGANTTLib.Column var_Column1 = (axGantt1.Columns.Add("IN - statment") as EXGANTTLib.Column);
var_Column1.ComputedField = "%0 in (1,2,3,4,5,7,8,9,11,13,14) ? 'found' : ''";
var_Column1.ToolTip = var_Column1.ComputedField;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
axGantt1.EndUpdate();
|
721
|
How can I use the CASE statement (CASE usage)

axGantt1.BeginUpdate();
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Value") as EXGANTTLib.Column);
var_Column.Width = 24;
EXGANTTLib.Column var_Column1 = (axGantt1.Columns.Add("CASE - statment") as EXGANTTLib.Column);
var_Column1.ComputedField = "%0 case (default:'not found';1:%0;2:2*%0;3:3*%0;4:4*%0;5:5*%0;7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen';14:'Fourt" +
"heen')";
var_Column1.ToolTip = var_Column1.ComputedField;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
axGantt1.EndUpdate();
|
720
|
How can I use the CASE statement (CASE usage)

axGantt1.BeginUpdate();
EXGANTTLib.Column var_Column = (axGantt1.Columns.Add("Value") as EXGANTTLib.Column);
var_Column.Width = 24;
EXGANTTLib.Column var_Column1 = (axGantt1.Columns.Add("CASE - statment") as EXGANTTLib.Column);
var_Column1.ComputedField = "%0 case (default:'not found';1:'One';2:'Two';3:'Three';4:'Four';5:'Five';7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen" +
"';14:'Fourtheen')";
var_Column1.ToolTip = var_Column1.ComputedField;
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
axGantt1.EndUpdate();
|
719
|
Is is possible to use HTML tags to display in the filter caption

axGantt1.BeginUpdate();
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarCaption = "This is a bit of text being displayed in the filter bar.";
axGantt1.Columns.Add("");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
axGantt1.EndUpdate();
|
718
|
How can I find the number of items after filtering
axGantt1.BeginUpdate();
axGantt1.Columns.Add("");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h = var_Items.AddItem("");
var_Items.set_CellCaption(h,0,var_Items.VisibleItemCount);
axGantt1.EndUpdate();
|
717
|
How can I change the filter caption

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptWords | EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAll;
axGantt1.FilterBarPromptPattern = "london robert";
axGantt1.FilterBarCaption = "<r>Found: ... ";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
716
|
While using the filter prompt is it is possible to use wild characters

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptPattern;
axGantt1.FilterBarPromptPattern = "lon* seat*";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
715
|
How can I list all items that contains any of specified words, not necessary at the beggining

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptStartWords | EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAny;
axGantt1.FilterBarPromptPattern = "london davolio";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
714
|
How can I list all items that contains any of specified words, not strings

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptWords | EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAny;
axGantt1.FilterBarPromptPattern = "london nancy";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
713
|
How can I list all items that contains all specified words, not strings

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptWords | EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAll;
axGantt1.FilterBarPromptPattern = "london robert";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
712
|
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptCaseSensitive | EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAny;
axGantt1.FilterBarPromptPattern = "Anne";
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
711
|
Is it possible to list only items that ends with any of specified strings

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptEndWith;
axGantt1.FilterBarPromptColumns = "0";
axGantt1.FilterBarPromptPattern = "Fuller";
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
710
|
Is it possible to list only items that ends with any of specified strings

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptEndWith;
axGantt1.FilterBarPromptColumns = "0";
axGantt1.FilterBarPromptPattern = "Fuller";
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
709
|
Is it possible to list only items that starts with any of specified strings

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptStartWith;
axGantt1.FilterBarPromptColumns = "0";
axGantt1.FilterBarPromptPattern = "An M";
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
708
|
Is it possible to list only items that starts with specified string

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptStartWith;
axGantt1.FilterBarPromptColumns = "0";
axGantt1.FilterBarPromptPattern = "A";
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
707
|
How can I specify that the list should include any of the seqeunces in the pattern

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAny;
axGantt1.FilterBarPromptPattern = "london seattle";
axGantt1.Chart.set_PaneWidth(true,0);
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
706
|
How can I specify that all sequences in the filter pattern must be included in the list

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptType = EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAll;
axGantt1.FilterBarPromptPattern = "london manager";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
705
|
How do I change at runtime the filter prompt

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptPattern = "london manager";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
704
|
How do I specify to filter only a single column when using the filter prompt

axGantt1.BeginUpdate();
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPromptColumns = "2,3";
axGantt1.FilterBarPromptPattern = "london";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
703
|
How do I change the prompt or the caption being displayed in the filter bar

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
axGantt1.FilterBarPrompt = "changed";
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
axGantt1.EndUpdate();
|
702
|
How do I enable the filter prompt feature

axGantt1.BeginUpdate();
axGantt1.Chart.set_PaneWidth(true,0);
axGantt1.ColumnAutoResize = true;
axGantt1.ContinueColumnScroll = false;
axGantt1.MarkSearchColumn = false;
axGantt1.SearchColumnIndex = 1;
axGantt1.FilterBarPromptVisible = true;
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
(var_Columns.Add("Name") as EXGANTTLib.Column).Width = 96;
(var_Columns.Add("Title") as EXGANTTLib.Column).Width = 96;
var_Columns.Add("City");
EXGANTTLib.Items var_Items = axGantt1.Items;
int h0 = var_Items.AddItem("Nancy Davolio");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Andrew Fuller");
var_Items.set_CellCaption(h0,1,"Vice President, Sales");
var_Items.set_CellCaption(h0,2,"Tacoma");
var_Items.set_SelectItem(h0,true);
h0 = var_Items.AddItem("Janet Leverling");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Kirkland");
h0 = var_Items.AddItem("Margaret Peacock");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"Redmond");
h0 = var_Items.AddItem("Steven Buchanan");
var_Items.set_CellCaption(h0,1,"Sales Manager");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Michael Suyama");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Robert King");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
h0 = var_Items.AddItem("Laura Callahan");
var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator");
var_Items.set_CellCaption(h0,2,"Seattle");
h0 = var_Items.AddItem("Anne Dodsworth");
var_Items.set_CellCaption(h0,1,"Sales Representative");
var_Items.set_CellCaption(h0,2,"London");
axGantt1.EndUpdate();
|
701
|
Is it possible to colour a particular column, I mean the cell's foreground color

axGantt1.BeginUpdate();
EXGANTTLib.ConditionalFormat var_ConditionalFormat = axGantt1.ConditionalFormats.Add("1",null);
var_ConditionalFormat.ForeColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
var_ConditionalFormat.ApplyTo = (EXGANTTLib.FormatApplyToEnum)0x1;
axGantt1.MarkSearchColumn = false;
EXGANTTLib.Columns var_Columns = axGantt1.Columns;
var_Columns.Add("Column 1");
var_Columns.Add("Column 2");
EXGANTTLib.Items var_Items = axGantt1.Items;
var_Items.set_CellCaption(var_Items.AddItem(0),1,1);
var_Items.set_CellCaption(var_Items.AddItem(2),1,3);
var_Items.set_CellCaption(var_Items.AddItem(4),1,5);
axGantt1.EndUpdate();
|